package cn.jsu.oj.dispatchServer.satellite.handler.patrol.hard;

import java.io.Serializable;

/**
 * 磁盘
 *
 * @author shan
 * @date 2022/07/04
 */
public class Disk implements Serializable {
    
    private String drive;
    private String typeName;
    private Integer type;
    private Long total;
    private Long leisure;
    private Long avail;
    private Long use;
    private Double useRate;

    public Disk() {
    }

    public Disk(String drive, String typeName, Integer type, Long total, 
                Long leisure, Long avail, Long use, Double useRate) {
        this.drive = drive;
        this.typeName = typeName;
        this.type = type;
        this.total = total;
        this.leisure = leisure;
        this.avail = avail;
        this.use = use;
        this.useRate = useRate;
    }

    public String getDrive() {
        return drive;
    }

    public void setDrive(String drive) {
        this.drive = drive;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long getLeisure() {
        return leisure;
    }

    public void setLeisure(Long leisure) {
        this.leisure = leisure;
    }

    public Long getAvail() {
        return avail;
    }

    public void setAvail(Long avail) {
        this.avail = avail;
    }

    public Long getUse() {
        return use;
    }

    public void setUse(Long use) {
        this.use = use;
    }

    public Double getUseRate() {
        return useRate;
    }

    public void setUseRate(Double useRate) {
        this.useRate = useRate;
    }

    @Override
    public String toString() {
        return "Disk{" +
                "drive='" + drive + '\'' +
                ", typeName='" + typeName + '\'' +
                ", type=" + type +
                ", total=" + total +
                ", leisure=" + leisure +
                ", avail=" + avail +
                ", use=" + use +
                ", useRate=" + useRate +
                '}';
    }
}
